package com.chanjet.donkey.shop.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.chanjet.donkey.entity.IdEntity;

@Entity
@Table(name="shop_category")
public class ShopCategory extends IdEntity {
	private ShopCategory parent;
	private String name;
	private int position;
	@ManyToOne @JoinColumn(name="parent_id")
	public ShopCategory getParent() {
		return parent;
	}
	public void setParent(ShopCategory parent) {
		this.parent = parent;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	
}
